package com.dj.mingkong.portal.biz.controller.system.vo.request;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 登录VO
 *
 * @author zenglonghui
 * @date: 2022/8/18 16:17
 */
@Data
@Accessors(chain = true)
public class LoginVo implements Serializable {
    /**
     * 用户名
     */
    @NotBlank(message = "username can not be blank")
    @Size(min = 1, max = 18, message = "username invalid")
    private String username;

    /**
     * 用户密码
     */
    @NotBlank(message = "password can not be blank")
    @Size(min = 1, max = 28, message = "password invalid")
    private String password;

    /**
     * 验证码
     */
    @Size(max = 4, message = "verifyCode invalid")
    private String verifyCode;
}
